package com.itic.ht.item.subclass.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.itic.appbase.framework.common.service.HtCrudService;
import com.itic.ht.item.subclass.persistence.dao.ItemSubclassDao;
import com.itic.ht.item.subclass.persistence.model.ItemSubclass;
import com.itic.ht.item.subclass.persistence.model.ItemSubclassExample;


@Service
@Transactional
public class ItemSubclassService
     extends HtCrudService<ItemSubclassDao,ItemSubclass,ItemSubclassExample> {
    @Autowired
    private ItemSubclassDao itemSubclassDao;

	public String deltrue(Integer id) {
		int result = itemSubclassDao.deleteByPrimaryKey(id);
    	if(result>0){
    		return SUCCESS;
    	}else{
    		return FAILED;
    	}
	}


}